# -*- coding: utf-8 -*-

"""
DateTime   : 2021/02/14 22:22
Author     : ZhangYafei
Description: 
"""
import requests

headers = {
    'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Mobile Safari/537.36'
}
response = requests.get('http://www.jianshu.com', headers=headers)

response.encoding = response.apparent_encoding
print(type(response.status_code), response.status_code)
print(type(response.headers), response.headers)
print(type(response.cookies), response.cookies)
print(type(response.url), response.url)
print(type(response.history), response.history)
